<?php

class Thongke extends MY_Admin
{
	// Protected or private properties
	protected $_template;
	
	// Constructor
	public function __construct()
	{
		parent::MY_Admin();

		// Check if the logged user is an administrator
		//$this->access_library->check_access();

		// Load needed models, libraries, helpers and language files
		$this->load->module_model('admin', 'thongke_model', 'thongke');
	}

	// Public methods
	public function index()
	{
		//Website
		$data['post_count_all'] 			= $this->thongke->get_post_count();
		$data['post_category_count_all'] 	= $this->thongke->get_post_category_count();
		$data['page_count_all'] 			= $this->thongke->get_page_count();
		$data['link_count_all'] 			= $this->thongke->get_link_count();
		$data['banner_count_all'] 			= $this->thongke->get_banner_count();
		
		//Education
		$data['student_count_all'] 			= $this->thongke->get_student_count();
		$data['student_army_count_all'] 	= $this->thongke->get_student_army_count();
		$data['teacher_count_all'] 			= $this->thongke->get_teacher_count();
		$data['subject_count_all'] 			= $this->thongke->get_subject_count();		
		$data['class_count_call'] 			= $this->thongke->get_class_count();
		$data['reg_count_call'] 			= $this->thongke->get_reg_count();
		
		//Xang Dau
		
		$this->_template['page']	= 'thongke/index';

		$this->system_library->load($this->_template['page'], $data, TRUE);
	}
}

/* End of file statistics.php */
/* Location: ./application/modules/admin/controllers/statistics.php */